<template>
  <div class="right">
    <div>{{count}}</div>
    <div> <button @click="add">点击+1</button></div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      count: 0
    }
  },
  methods: {
    add () {
      this.count++;
    }
  }
}
</script>

<style scoped>
.right {
  flex: 1;
  background: green;
}
</style>